(function() {
	require(['jquery', 'vbox'], function(jquery, vbox) {
		
		if(typeof jQuery === 'undefined') {	//检测jquery依赖项
			throw new Error('jquery依赖项未能加载');
		}
		
		if(typeof $.fn.bootstrapValidator === 'undefined') {	//检测bootstrapValidator依赖项
			throw new Error('bootstrapValidator依赖项未能加载');
		}
		
		/*验证添加*/
		var v = vbox;
		$('#itemCategory_create_form').bootstrapValidator({
	        feedbackIcons:v.feedbackIcons,
	        fields: {
	        	name: {
	        		trigger: 'blur',
	                validators: {
	                    notEmpty: v.notEmpty
	                }
	            }
	        }
	    });
	});
})();